<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>班级管理 - 在线考试系统</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body class="bg-light">
    <div class="container mt-5">
        <h1 class="text-center">班级: {{ class_name }}</h1>

        <div class="alert alert-info text-center" role="alert">
            {% if exam_active %}
                <h2>考试进行中</h2>
            {% else %}
                <h2>当前没有进行中的考试</h2>
            {% endif %}
        </div>

        <div class="card p-4">
            <h2 class="text-center">学生列表</h2>
            <ul class="list-group mb-4">
                {% for student in students %}
                    <li class="list-group-item">{{ student }}</li>
                {% endfor %}
            </ul>
        </div>
    </div>
</body>
</html>
